//
var TN_Widget = function() {
var months = ["", "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
return {
newWindow : true,
CreateEventRow : function(row, isAlt) {
var t = row[4].split("/");
t[0] = months[t[0]];
t[2] = ", " + t[2];
return "
" +
t[0] + " " + "" + t[1] + "" +
t[2] + " " +
row[3].substring(0,3) + " " +
row[5] + " | " +
row[0] + " " +
row[1] + " - " +
row[2] + " | " + this.btnText + "" +
" |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kwds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
var footerLink = "";
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = "" + newTable.join('') + "" + footerLink + "
";
}
else if(document.querySelector(".tnpl_results_container") != null) {
document.querySelector(".tnpl_results_container").innerHTML = "" + newTable.join('') + "" + footerLink + "
";
}
else
document.write("" + newTable.join('') + "" + footerLink + "
");
}
};
}();
//BPW-TNSERV-03A
TN_Widget.AddCss('//s3.amazonaws.com/TNService/pl-widget/styles/tnpl-results-widget.css');
TN_Widget.CreateTable([['Our Last Night','Cathedral Theatre at the Masonic Temple','Detroit, MI','Saturday','5/11/2024','6:30 PM','6014820','Our-Last-Night-5-11-2024'],['Violent Femmes','Masonic Temple Theatre','Detroit, MI','Saturday','5/18/2024','7:00 PM','6318997','Violent-Femmes-5-18-2024'],['Lenny White','Jack London Revue','Portland, OR','Friday','5/24/2024','7:30 PM','6257314','Lenny-White-5-24-2024'],['Lenny White','Jack London Revue','Portland, OR','Friday','5/24/2024','10:00 PM','6257315','Lenny-White-5-24-2024'],['Jack Russell's Great White','Arcada Theatre','Saint Charles, IL','Saturday','6/1/2024','8:00 PM','6263820','Jack-Russell-s-Great-White-6-1-2024'],['Jack Russell's Great White','Whisky A Go Go','West Hollywood, CA','Thursday','6/6/2024','6:00 PM','6213140','Jack-Russell-s-Great-White-6-6-2024'],['Ancient Aliens Live','Cathedral Theatre at the Masonic Temple','Detroit, MI','Saturday','6/8/2024','7:00 PM','6266447','Ancient-Aliens-Live-6-8-2024'],['Nate Jackson','Cathedral Theatre at the Masonic Temple','Detroit, MI','Friday','6/28/2024','6:00 PM','6117616','Nate-Jackson-6-28-2024'],['Lyle Lovett and His Large Band','Cathedral Theatre at the Masonic Temple','Detroit, MI','Tuesday','7/23/2024','7:00 PM','6330100','Lyle-Lovett-and-His-Large-Band-7-23-2024'],['Idina Menzel','Cathedral Theatre at the Masonic Temple','Detroit, MI','Sunday','8/11/2024','5:30 PM','6403154','Idina-Menzel-8-11-2024']],'"jack white"','https://www.ticketnetwork.com');